﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace HongStone.Repository.Migrations
{
    public partial class gaii3 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "DeptCount",
                columns: table => new
                {
                    DeptCountId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    StaffId = table.Column<int>(type: "int", nullable: false),
                    Salary = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    WorkTime = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    MonthAvg = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Ping = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Order = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    ManagerPing = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    ManagerOrder = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    XiShu = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Sum = table.Column<int>(type: "int", nullable: false),
                    Sums = table.Column<int>(type: "int", nullable: false),
                    ManagerTiao = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Tiao = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Yuan = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Yu = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Bei = table.Column<decimal>(type: "decimal(18,2)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_DeptCount", x => x.DeptCountId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "DeptCount");
        }
    }
}
